import fetch from './fetch'
let config = {'Content-Type': 'multipart/form-data'}
export default {
  file: {
    get (params) {
      return fetch('/api/list', params, 'get')
    },
    add (params) {
      return fetch('/api/upload', params, 'post', 'payload', config)
    }
  }
}
